<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"  %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<c:set var="contextPath" value="${pageContext.request.contextPath}"></c:set>
<s:form>
[strutsmodule1.jsp]
<p>
<h3>Struts Module 1 Portfolio Trading Tool</h3>
<p>

<c:forEach items="${resultList}" var="result" varStatus="counter">
	- ${result} <a href="Module1Action.action?method=sell&id=${counter.count}">[sell]</a> <br>
</c:forEach>

<p>
<span style="color:blue">${message}</span>
<% if (session != null) session.setAttribute("message", null); %> 
<p>

<c:choose>
<c:when test="${!empty resultList}">	
	<input type="submit" name="method:liquidate" value="Liquidate" />
</c:when>
<c:otherwise>
	<input type="submit" name="method:create" value="Create" />
</c:otherwise>
</c:choose>

</s:form>
[end strutsmodule1.jsp]


